package cn.thr.ymcc.client;

import cn.thr.ymcc.domain.Login;
import cn.thr.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@Component
//到那个服务里面去调用方法
@FeignClient(value = "service-uaa")
public interface LogininfoClient {
    //这里接口要跟要用接口一致
    @PostMapping("/login/save")
    JsonResult saveOrUpdate(@RequestBody Login login);
}
